from concurrent.futures import ThreadPoolExecutor


def some_function(arg):
    return arg * 2


with ThreadPoolExecutor() as executor:
    future = executor.submit(some_function, 42)
    result = future.result()
    print(result)

"""
submit 方法：submit 方法用于向执行器提交一个可调用对象（函数或方法），并返回一个 Future 对象。Future 表示一个异步操作的未来结果。
"""